package com.charmzenus.it.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

//@SpringBootApplication
//@EnableDiscoveryClient
//@EnableCircuitBreaker    // 非核心服务不用
@SpringCloudApplication // 这个已经包含了SpringBootApplication  EnableDiscoveryClient EnableCircuitBreaker
@ComponentScan(basePackages = {"com.charmzenus.it.common", "com.charmzenus.it.redis", "com.charmzenus.it.feign", "com.charmzenus.it.order"})
@EnableFeignClients(basePackages = {"com.charmzenus.it.feign"})
public class OrderApp {

    public static void main(String[] args) {
        SpringApplication.run(OrderApp.class, args);
    }
}
